    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ include file="/include.inc.jsp" %>
    <!DOCTYPE html>
    <html>
    <head>
        <%@include file="/WEB-INF/views/layout/miiteen/base.ref.jsp" %>
    </head>
    <body>
    <div class="mainpage edit">
        <!--顶部菜单-->
        <div class="page-topmenu">
        <shiro:hasPermission name="basicBrowsingType:edit">
            <div class="btn-panel">
                <el-button type="primary" size="small" icon="el-icon-check" @click="save">保存</el-button>
            </div>
        </shiro:hasPermission>    
            <div class="btn-panel">
                <el-button size="small" icon="el-icon-back" @click="back">返回</el-button>
            </div>
        </div>
        <!--编辑表单-->
        <el-form :ref="formid" :model="form" :rules="rules" size="small" :label-width="labelwidth"
                 :label-position="labelposition"
                 class="one-col" :validate-on-rule-change="false">
            <!--视业务进行更改-begin-->
            <input type="hidden" v-model="form.id"/>
            <el-form-item label="类别名称" prop="typeName">
                <el-input v-model="form.typeName" placeholder="类别名称"></el-input>
            </el-form-item>
            <el-form-item label="数据表名" prop="tableName">
                <el-input v-model="form.tableName" placeholder="数据来源表名"></el-input>
            </el-form-item>
            <!--视业务进行更改-end-->
        </el-form>
    </div>
    <script>
        //初始化数据，必须放置在列表页面封装部分前
        function initVueOption(obj) {
            //设置控制器
            obj.data.controller = "${ctx}/basic/basicbrowsingtype";
            //设置表单数据
            obj.data.form = ${basicBrowsingType};
            //设置校验规则，没有则删掉
            obj.data.rules = {
                typeName: [
                    {required: true, message: '请输入类别名称', trigger: 'blur'}
                ],
                tableName: [
                    {required: true, message: '请输入数据来源表名', trigger: 'blur'}
                ]
            }
        }
    </script>
    <!--编辑页面封装部分-->
    <%@include file="/WEB-INF/views/layout/miiteen/page.edit.ref.jsp" %>
    </body>
    </html>